
<div class="content" style="margin-top: 50px;margin-left: 200px;margin-right: 200px;">
    <section class="panel panel-default" style="padding: 20px;">
        <div class="panel-heading">
            <h4>机器人列表<span style="font-size: 13px;">(已被添加进其他分组的机器人不会出现在列表中)</span></h4>
            <div class="panel-search form-inline" >
                <div class="input-group">
                    <span class="input-group-addon" ng-model="vm.queryParams.groupName">机器人编号：</span>
                    <input class="form-control" name="robotNumber" id="selectParams" ng-model="vm.robotNumber" required>
                </div>
                <div class="input-group">
                    <button type="button" class="btn btn-primary" ng-click="vm.select()" ng-disabled="vm.isSelectting">
                        <i class="fa fa-fw fa-search"></i>查询
                    </button>
                </div>
            </div>
        </div>
        <div style="height: 400px; overflow: auto">
            <table class="am-fade-and-scale table table-hover"  >
                <thead>
                <tr>
                    <th style="width: 10%;" ng-click="vm.sorter.reorder('temp')">
                        序号<i class="text-info fa fa-fw" ng-show="vm.sorter.order === 'temp'" ng-class="{'fa-sort-down': vm.sorter.reverse, 'fa-sort-up': !vm.sorter.reverse}"></i>
                    </th>
                    <th style="width: 80%;" ng-click="vm.sorter.reorder('groupName')">
                        机器人编号<i class="text-info fa fa-fw" ng-show="vm.sorter.order === 'groupName'" ng-class="{'fa-sort-down': vm.sorter.reverse, 'fa-sort-up': !vm.sorter.reverse}"></i>
                    </th>
                    <th style="width: 10%;">操作</th>
                </tr>
                </thead>
                <tbody class="text-muted">
                <tr ng-repeat="item in vm.items">
                    <td ng-bind="::$index+1"></td>
                    <td ng-bind="::item.robotNumber | readable"></td>
                    <td><a ng-if="vm.isShowAddBtn" ng-click="vm.addToGroup($index)">添加</a></td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="modal-footer">
            <button class="btn btn-warning" ng-click="vm.cancel()">关闭</button>
        </div>
    </section>

</div>
<script type="text/ng-template" id="tipsModel.html">
    <div class="modal-header">
        <h4 class="modal-title">{{resultMsg}}</h4>
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" type="button" ng-click="ok()">确认</button>
    </div>
</script>